import request from '@/utils/request'
//库内

//维修列表
export function queryWXList(data) {//列表
  return request({
    url: '/weixiud/queryWeixiudAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryWXOne(data) {//列表
  return request({
    url: '/weixiud/getWeixiudByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function addWxd(data) {//列表
  return request({
    url: '/weixiud/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateWxd(data) {//列表
  return request({
    url: '/weixiud/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteWxd(data) {//列表
  return request({
    url: '/weixiud/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//维修任务单列表
export function queryWXRWDList(data) {//列表
  return request({
    url: '/weixiurwd/queryWeixiurwdAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryWXRWDListAll(data) {//列表
  return request({
    url: '/weixiurwd/getList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryWXRWDOne(data) {//单一
  return request({
    url: '/weixiurwd/getWeixiurwdByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function addWXRWD(data) {//新增
  return request({
    url: '/weixiurwd/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateWXRWDStats(data) {//更新状态
  return request({
    url: '/weixiurwd/updateZhuangtai',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateWXRWD(data) {//更新
  return request({
    url: '/weixiurwd/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteWXRWD(data) {//删除
  return request({
    url: '/weixiurwd/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function xaifaWXD(data) {
  return request({
    url: '/wcsgl/sendWeixiurwd',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//盘点
export function queryPandianRWdList(data) {//盘点任务列表
  return request({
    url: '/pandianrwd/queryPandianrwdAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryPandianRWdListAll(data) {//盘点任务列表
  return request({
    url: '/pandianrwd/getList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryPandianRWdById(data) {//盘点任务列表
  return request({
    url: '/pandianrwd/getPandianrwdByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deletePandianRWdById(data) {//盘点任务列表
  return request({
    url: '/pandianrwd/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function insertPandianRWd(data) {//增加
  return request({
    url: '/pandianrwd/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//更新状态

export function updatePandianRWdState(data) {//修改
  return request({
    url: '/pandianrwd/updateZhuangtai',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updatePandianRWd(data) {//修改
  return request({
    url: '/pandianrwd/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//下发盘点任务单WCS
export function xaifaPDD(data) {
  return request({
    url: '/wcsgl/sendPandianrwd',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//盘点
export function queryPandiandList(data) {//列表
  return request({
    url: '/pandiand/queryPandiandAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryPandiandById(data) {//查一条
  return request({
    url: '/pandiand/getPandiandByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function insertPandiandAndMx(data) {//增加
  return request({
    url: '/pandiand/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updatePandiandAndMx(data) {//修改
  return request({
    url: '/pandiand/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deletePandiandByIds(data) {//删除
  return request({
    url: '/pandiand/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryPandiandmxPage(data) {//明细
  return request({
    url: '/pandian/queryPandiandmxPage',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//挂架管理
export function queryguajiaPage(data) {//列表
  return request({
    url: '/guajiagl/queryGuajiaglAsPage',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryguajiaList(data) {//列表
  return request({
    url: '/guajiagl/getList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data
  })
}
export function queryguajiaListIDS(data) {//列表
  return request({
    url: '/guajiagl/getListByIDs',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data
  })
}
export function addguajia(data) {//
  return request({
    url: '/guajiagl/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateguajia(data) {//
  return request({
    url: '/guajiagl/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//导出

export function downloadStrategyResult(data) {//状态
  return request({
    url: '/guajiagl/exportExcelByQuery',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data', responseType: 'blob' },
    responseType: 'blob',
    data,
  })
}
//导入

export function importGuajia(data) {//状态
  return request({
    url: '/guajiagl/importExcel',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data', responseType: 'blob' },
    data,
  })
}
export function queryguajiaZT(data) {//状态
  return request({
    url: '/weihubyd/queryWeihubydZT',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function deleteguajia(data) {//删除
  return request({
    url: '/guajiagl/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function querykucunmxPage(data) {//明细
  return request({
    url: '/weihubyd/querykucunmxPage',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}


export function queryguajiamx(data) {//
  return request({
    url: '/guajiagl/getGuajiaglByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

//  转级
export function queryZhuanjidPage(data) {//列表
  return request({
    url: '/zhuanjid/queryZhuanjidPage',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteZhuanjidById(data) {//删除
  return request({
    url: '/zhuanjid/deleteZhuanjidById',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function insertZhuanjid(data) {//
  return request({
    url: '/zhuanjid/insertZhuanjid',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryZhuanjidById(data) {//getOne
  return request({
    url: '/zhuanjid/queryZhuanjidById',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function shangbaoZhuanjid(data) {//上报
  return request({
    url: '/zhuanjid/shangbaoZhuanjid',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//报废任务单
export function getBFRWlist(data) {
  return request({
    url: '/baosunrwd/queryBaosunrwdAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function getBFRWlistAll(data) {
  return request({
    url: '/baosunrwd/getList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function insertBaoSunrwd(data) {
  return request({
    url: '/baosunrwd/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateBaoSunrwdState(data) {
  return request({
    url: '/baosunrwd/updateZhuangtai',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateBaoSunrwd(data) {
  return request({
    url: '/baosunrwd/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteBaoSunrwd(data) {
  return request({
    url: '/baosunrwd/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function getBFRWDbyid(data) {
  return request({
    url: '/baosunrwd/getBaosunrwdByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//报废
export function getBFlist(data) {
  return request({
    url: '/baosund/queryBaosundAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function insertBaofeid(data) {
  return request({
    url: '/baosund/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateBaofeid(data) {
  return request({
    url: '/baosund/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteBaofeid(data) {
  return request({
    url: '/baosund/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function getBFDbyid(data) {
  return request({
    url: '/baosund/getBaosundByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function shangbaoBFD(data) {
  return request({
    url: '/baofeid/shangbaoBaofeid',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function xaifaBSD(data) {
  return request({
    url: '/wcsgl/sendBaosunrwd',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//调拨单管理
export function queryDBDlist(data) {
  return request({
    url: '/diaobod/queryDiaobodAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function getDBDOne(data) {
  return request({
    url: '/diaobod/getDiaobodByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function insertDbd(data) {
  return request({
    url: '/diaobod/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateDbd(data) {
  return request({
    url: '/diaobod/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteDbd(data) {
  return request({
    url: '/diaobod/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryDBDRWlist(data) {
  return request({
    url: '/diaoborwd/queryDiaoborwdAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryDBDRWlistAll(data) {
  return request({
    url: '/diaoborwd/getList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryDBDRWOne(data) {
  return request({
    url: '/diaoborwd/getDiaoborwdByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function addDBDRW(data) {
  return request({
    url: '/diaoborwd/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateDBDRW(data) {
  return request({
    url: '/diaoborwd/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function deleteDBDRW(data) {
  return request({
    url: '/diaoborwd/delete',
    headers: { 'content-Type': 'multipart/form-data' },
    method: 'post',
    data,
  })
}
export function updateDbrwdStatus(data) {
  return request({
    url: '/diaoborwd/updateZhuangtai',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function xaifaDBD(data) {
  return request({
    url: '/wcsgl/sendDiaoborwd',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function addFanduidd(data) {
  return request({
    url: '/fanduiddd/saveFanduiddd',
    method: 'post',
    data,
  })
}
export function deleteFanduidd(data) {
  return request({
    url: '/fanduiddd/deleteFanduiddd',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryFanduidddmx(data) {
  return request({
    url: '/fanduiddd/queryFanduidddmx',
    method: 'post',
    data,
  })
}
export function queryFanduidddZT(data) {//getOne
  return request({
    url: '/fanduiddd/queryFanduidddZT',
    method: 'post',
    data,
  })
}
//效期预警
export function queryYxqyjpage(data) {//getOne
  return request({
    url: '/rest/ronghezx/cangkuwz/queryYouxiaoqyjPage',
    method: 'post',
    data,
  })
}
//重置任务
export function resetTaskDB(data) {
  return request({
    url: '/wcsgl/diaoborenwdSuccess',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function resetTaskBS(data) {
  return request({
    url: '/wcsgl/baosunrenwdSuccess',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function resetTaskWX(data) {
  return request({
    url: '/wcsgl/weixiurenwdSuccess',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function resetTaskPD(data) {
  return request({
    url: '/wcsgl/pandianrenwdSuccess',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
